<?php
header('content-type:text/html; charset=utf-8');
session_start();
if(!isset($_SESSION['user'])){
    header('Refresh:2;url=/denglu.html');
    die('<h3>请先登录</h3><a>返回重新登录</a>');
}
?>


<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap 模板</title>
	  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" charset="UTF-8" >
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <link href="css/bootstrap.min.css" rel="stylesheet">
      <script src="js/jquery-1.11.1.min.js"></script>
      <script src="js/bootstrap.min.js"></script>
      <!--[if lt IE 9]>
         <script src="js/html5shiv.js"></script>
         <script src="js/respond.min.js"></script>
      <![endif]-->
 </head>
   <body>
    <div class="col-xs-3 col-xs-offset-4">
   	<div class="row">
   	<nav class="navbar navbar-default">
   		<form class="navbar-form navbar-left" role="search">
        <div class="form-group">
         <div class="input-group">
          <input type="text" class="form-control" placeholder="搜索"/>
		  <span class="input-group-addon">
		   	<span class="glyphicon glyphicon-search"></span>
		   	</span>
        </div>
		</div>
      </form>
   	<ul class="nav navbar-nav">
        <li class="dropdown">
          <a  class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-list"></span>通讯录</a>
          <ul class="dropdown-menu">
           	<li><a href="tongxunlu3.php">添加</a></li>
            <li><a href="#">列表</a></li>
          </ul>
        </li>
      </ul>
	</nav>
	</div>
	<div class="row">
	<div class="panel-default">
	<div class="panel-heading">
	<div class="panel-title">
		通讯录列表
	</div>
	</div>
	</div>
	<div class="list-group">		
	<a class="list-group-item"><span class="glyphicon glyphicon-user">张三</span></a>
	<a class="list-group-item"><span class="glyphicon glyphicon-user">李四</span></a>
	<a class="list-group-item"><span class="glyphicon glyphicon-user">王五</span></a>
	<a class="list-group-item"><span class="glyphicon glyphicon-user">赵六</span></a>
	<a class="list-group-item"><span class="glyphicon glyphicon-user">陈七</span></a>	
	</div>
	<div class="col-xs-offset-10">
	<a href='logout.php'>退出登录</a>
	</div>	
	</div>
	</div>
   </body>
</html>